package com.zhentao.utils.common;

import com.zhentao.model.wemedia.pojo.WmUser;

public class WmUserThreadLocalUtil {
    private final  static ThreadLocal<WmUser>  T_THREAD_LOCAL=new ThreadLocal();


    public static void setUser(WmUser user){
        T_THREAD_LOCAL.set(user);
    }

    public static WmUser getUser(){
        return T_THREAD_LOCAL.get();
    }

    public static void remove(){
        T_THREAD_LOCAL.remove();
    }
}
